<div class="navbar">
    &nbsp;
    <a class="here" href="/">All Deals</a>
    <a href="/homepage/recentdeal">Recent Deal</a>
    <?php 
        foreach($navbar as $n)
        {
            ?>
             <a href="/navbar/view/<?=$n->id?>"><?=$n->name?></a>
            <?php
        }
    ?>
</div>